package ooday05;

public class EumTest {
    public static void main(String[] args) {
        Seasons[] seasons=Seasons.values();//获取所有枚举对象
        for (int i=0;i<seasons.length;i++){
            System.out.println(seasons[i]);
        }

        Seasons s=Seasons.WINTER;//获取WINTER的对象
        switch (s){
            case SPRNG:
                System.out.println("春天来了....");
                break;
            case SUMMER:
                System.out.println("夏天来了...");
                break;
            case AUTUMN:
                System.out.println("秋天来了....");
                break;
            case WINTER:
                System.out.println("冬天来了...");
        }
    }
}
